import request from './request.js'
export function listAllTrack() {
  return request({
    url: "/clientApi/carema/all-track",
    method: "get",
  });
}
export function getCaremaList(trackId) {
  return request({
    url: "/clientApi/carema/carema-info?trackId=" + trackId,
    method: "get",
  });
}
export function getTrackStatus(trackId) {
  return request({
    url: "/clientApi/carema/track-status?trackId=" + trackId,
    method: "get",
  });
}
export function getConsumeTimes(trackId) {
  return request({
    url: "/clientApi/carema/consume-times?trackId=" + trackId,
    method: "get",
  });
}
export function getConsumeCount(trackId) {
  return request({
    url: "/clientApi/carema/consume-count?trackId=" + trackId,
    method: "get",
  });
}
export function uploadImg(formData) {
  return request({
    url: "/clientApi/carema/record-image",
    method: "post",
    headers: {
      "Content-Type": "multipart/form-data",
    },
    data: formData,
  });
}
